// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
//import '!style-loader!css-loader!element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
//import Vconsole from 'vconsole'

//import 'lib-flexible/flexible.js'
import '@/services/axiosDriver.js'



// 项目组件 vue.prototype 扩展
import '@/components/toast/extend.js'

import {checkIfSecondWechatShareBug} from "./utils/common"
import {Loading} from "./utils/Loading";
import {Wechat} from "./utils/Wechat";

Vue.config.productionTip = false

import { renbao } from "@/services"



router.beforeEach( async (to, from, next)=>{
  next()
})

router.afterEach(()=>{
  const loading = Loading.getInstance()
  loading.hideLoading()
})



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
//new Vconsole()



